﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace OnlineEducation.Data.Entities
{  /// <summary>
   /// 课程评价
   /// </summary>
    public class TeachingEvaluation : EntityBase
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [ForeignKey("TeachingPlan")]
        public int TeachingPlanId { get; set; }
        public TeachingPlan TeachingPlan { get; set; }

        [Display(Name = "内容")]
        [StringLength(5000)]
        public string Content { get; set; }

        [Display(Name = "分数")]
        public decimal Point { get; set; }

        [ForeignKey("Student")]
        public int StudentId { get; set; }
        public ApplicationUser Student { get; set; }


    }
}
